import java.io.Serializable;


public class DomainInfo implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String domain;
	private String IP;
	private String owner;
	private String email;
	
	public DomainInfo(String domain, String iP) {
		super();
		this.domain = domain;
		IP = iP;
	}

	public DomainInfo(String domain, String iP, String owner, String email) {
		super();
		this.domain = domain;
		IP = iP;
		this.owner = owner;
		this.email = email;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getIP() {
		return IP;
	}

	public void setIP(String iP) {
		IP = iP;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public String toString()
	{
		StringBuilder sb = new StringBuilder();
		sb.append("DNS info for domain: ");
		sb.append(domain);
		sb.append("\n");
		sb.append("IP: ");
		sb.append(IP);
		sb.append("\n");
		sb.append("Owner: ");
		sb.append(owner);
		sb.append("\n");
		sb.append("Owner e-mail: ");
		sb.append(email);
		sb.append("\n");
		
		return sb.toString();
	}
}
